Random Access Resource Selection Method And Terminal Device

ABSTRACT

A random access resource selection method and a terminal device are provided. The random access resource selection method includes: determining a first moment at which a terminal device determines that the reception of a random access response signal is unsuccessful; selecting a delay time according to a received backoff indicator BI value; and selecting a random access resource according to the first moment and the delay time.

CROSS REFERENCE TO RELATED APPLICATIONS

This application is a continuation application of PCT InternationalApplication No. PCT/CN2019/089158 filed on May 30, 2019, which claimspriority to Chinese Patent Application No. 201810632087.2 filed on Jun.19, 2018 in China, both disclosrues of which are incorporated herein byreference in their entireties.

TECHNICAL FIELD

The present disclosure relates to the field of communicationstechnologies, and in particular, to a random access resource selectionmethod and a terminal device.

BACKGROUND

After a terminal device, for example, user equipment (User Equipment,UE) initiates a random access procedure, if a measurement result of aconfigured synchronous signal block (Synchronous Signal Block, SSB)and/or channel state information reference signal (Channel StateInformation-Reference Signal, CSI-RS) is above a preset threshold, theUE may select a random access channel (physical random access channel,PRACH) resource corresponding to the configured SSB and/or CSI-RS, totransmit a random access signal, for example, an Msg1. The presetthreshold may be configured by the network side. For example,rsrp-ThresholdSSB configured by the network side may be used for adecision based on the measurement result of an SSB, and/orrsrp-ThresholdCSI-RS configured by the network side may be used for adecision based on the measurement result of a CSI-RS.

After transmitting the Msg1, the UE may receive a random access response(Random Access Response, RAR) within a random access response window.However, if the UE has not successfully received, in the random accessresponse window, an RAR, for example, an Msg2, corresponding to the Msg1sent by the UE, and the network side indicates a backoff indicator(Backoff Indicator, BI) value (for example, 40 ms), the UE may firstrandomly select a delay time (for example, 20 ms) according to the BIvalue, and then delay next transmission or retransmission of the Msg1 bythe delay time.

Currently, after the reception of the Msg2 is unsuccessful, the UE,usually, immediately starts to select a next random access resource,that is, select a PRACH resource corresponding to an SSB and/or a CSI-RSwhose measurement result is above a preset threshold. However, withintroducing the BI value, if the UE delays the next transmission of theMsg1 according to the received BI value, a measurement result of an SSBand/or a CSI-RS corresponding to a PRACH resource actually used by theUE to transmit the Msg1 may already be below the preset threshold. Inthis case, the transmission of the Msg1 is aborted. As a result, thetransmission of the Msg1 in a current random access procedure fails, andthe failure probability of the random access procedure is increased.

SUMMARY

Embodiments of the present disclosure provide a random access resourceselection method and a terminal device, to resolve a problem that aftera BI value is currently introduced, a random access procedure failsbecause a random access resource is immediately selected after thereception of a random access response is unsuccessful.

According to a first aspect, an embodiment of the present disclosureprovides a random access resource selection method, including:

-   -   determining a first moment at which a terminal device determines        that the reception of a random access response signal is        unsuccessful;    -   selecting a delay time according to a received BI value; and    -   selecting a random access resource according to the first moment        and the delay time.

According to a second aspect, an embodiment of the present disclosurefurther provides a terminal device, including:

-   -   a determining module, configured to determine a first moment at        which a terminal device determines that the reception of a        random access response signal is unsuccessful;    -   a first selection module, configured to select a delay time        according to a received BI value; and    -   a second selection module, configured to select a random access        resource according to the first moment and the delay time.

According to a third aspect, an embodiment of the present disclosurefurther provides a terminal device, including a memory, a processor, anda computer program stored in the memory and executable on the processor.When the computer program is executed by the processor, the steps in theforegoing random access resource selection method are performed.

According to a fourth aspect, an embodiment of the present disclosurefurther provides a computer readable storage medium, where the computerreadable storage medium stores a computer program. When the computerprogram is executed by a processor, the steps in the foregoing randomaccess resource selection method are performed.

In the embodiments of the present disclosure, because the delay timeselected according to the BI value is considered when the random accessresource is selected, after introduction of the BI value enables backoffof transmission of the random access signal, the random access resourcethat is close to actual transmission of the random access signal andthat satisfies a requirement can be selected, to transmit the randomaccess signal. Therefore, a selection incorrectness probability of therandom access resource that is caused by delayed transmission of therandom access signal is reduced, and random access failures are reduced.

BRIEF DESCRIPTION OF DRAWINGS

To describe the technical solutions in the embodiments of the presentdisclosure more clearly, the following briefly describes theaccompanying drawings required in the embodiments of the presentdisclosure. Apparently, the accompanying drawings in the followingdescriptions show merely some embodiments of the present disclosure, anda person of ordinary skill in the art may still derive otheraccompanying drawings from these accompanying drawings without creativeefforts.

FIG. 1 is a flowchart of a random access resource selection methodaccording to an embodiment of the present disclosure;

FIG. 2 is a first schematic diagram of selecting a random accessresource according to an embodiment of the present disclosure;

FIG. 3 is a second schematic diagram of selecting a random accessresource according to an embodiment of the present disclosure;

FIG. 4 is a third schematic diagram of selecting a random accessresource according to an embodiment of the present disclosure;

FIG. 5 is a first schematic structural diagram of a terminal deviceaccording to an embodiment of the present disclosure; and

FIG. 6 is a second schematic structural diagram of a terminal deviceaccording to an embodiment of the present disclosure.

DESCRIPTION OF EMBODIMENTS

To describe the technical solutions in the embodiments of the presentdisclosure more clearly, the following briefly describes theaccompanying drawings required in the embodiments of the presentdisclosure. Apparently, the accompanying drawings in the followingdescriptions show merely some embodiments of the present disclosure, anda person of ordinary skill in the art may still derive otheraccompanying drawings from these accompanying drawings without creativeefforts.

As shown in FIG. 1, an embodiment of the present disclosure provides arandom access resource selection method, applied to a terminal device.The method includes the following steps:

Step 101: Determine a first moment at which a terminal device determinesthat the reception of a random access response signal is unsuccessful.

After the terminal device transmits a random access signal, if theterminal device has not received, in a random access response window,the random access response signal corresponding to the random accesssignal, the terminal device may determine that the reception of therandom access response signal is unsuccessful.

Step 102: Select a delay time according to a received BI value.

It should be noted that the BI value in step 102 may be sent by anetwork side to the terminal device. When selecting the delay timeaccording to the received BI value, the terminal device may randomlyselect a delay time. For example, if the received BI value is 40 S, thedelay time selected by the terminal device may be 10 S, 25 S, or thelike, as long as the delay time is between 0 and 40 S.

Step 103: Select a random access resource according to the first momentand the delay time.

In the random access resource selection method in this embodiment of thepresent disclosure, because the delay time selected according to the BIvalue is considered when the random access resource is selected, afterintroduction of the BI value enables backoff of transmission of therandom access signal, the random access resource that is close to actualtransmission of the random access signal and that satisfies arequirement can be selected, to transmit the random access signal.Therefore, a selection incorrectness probability of the random accessresource that is caused by delayed transmission of the random accesssignal is reduced, and random access failures are reduced.

In this embodiment of the present disclosure, optionally, step 103 maybe specifically:

selecting the random access resource after delaying the first moment bythe delay time.

For example, referring to FIG. 2, it is assumed that after transmittingan Msg1, UE has not successfully received, in the random access responsewindow, a random access response signal Msg2 corresponding to the Msg1,and determines, at a t1 moment, that the reception of the Msg2 isunsuccessful, and after receiving the BI value sent by the network side,the UE randomly selects a delay time backoffDelay (that is, a delayamount) according to the BI value. In this case, the UE may select therandom access resource after delaying the t1 moment by the backoffDelay,for example, after a t2 moment, that is, delay selection of the randomaccess resource in a subsequent random access procedure by a period ofthe backoffDelay.

In this embodiment of the present disclosure, optionally, step 103 maybe specifically:

-   -   selecting the random access resource at the first moment; and    -   when a signal measurement result corresponding to a random        access resource selected before a second moment is below a        preset threshold, selecting a random access resource again until        the second moment, where    -   the second moment is determined according to the first moment        and the delay time.        The signal measurement result may be a measurement result of an        SSB and/or a CSI-RS.

Optionally, the second moment may be a moment obtained by delaying thefirst moment by the delay time, or may be a moment when the randomaccess signal is sent after delaying the first moment by the delay time.

For example, referring to FIG. 3, it is assumed that after transmittingthe Msg1, UE has not successfully received, in the random accessresponse window, the random access response signal Msg2 corresponding tothe Msg1, and determines, at the t1 moment, that the reception of theMsg2 is unsuccessful, and after receiving the BI value sent by thenetwork side, the UE randomly selects a delay time backoffDelayaccording to the BI value. In this case, the UE may select the randomaccess resource when the t1 moment starts, and according toconfiguration information of the network side, if a measurement resultthat is of an SSB or a CSI-RS and that is measured by the UE is abovethe preset threshold, the UE may select, at the t2 moment, the randomaccess resource corresponding to the SSB1 (in this case, the measurementresult of the SSB1 is above the preset threshold), to transmit the Msg1.However, if the measurement result of the SSB1 is below or equal to thethreshold before a tp moment, for example, the measurement result of theSSB1 at a t3 moment in FIG. 3 is below or equal to threshold, where thetp moment is a moment at which the Msg1 is sent after the t1 moment isdelayed by the backoffDelay, the UE may select a random access resourceagain until the tp moment, and change a corresponding random accessresource, for example, change to a random access resource correspondingto an SSB2 (in this case, a measurement result of the SSB2 is greaterthan the threshold).

For another example, referring to FIG. 4, it is assumed that aftertransmitting the Msg1, UE has not successfully received, in the randomaccess response window, the random access response signal Msg2corresponding to the Msg1, and determines, at the t1 moment, that thereception of the Msg2 is unsuccessful, and after receiving the BI valuesent by the network side, the UE randomly selects a delay timebackoffDelay according to the BI value. In this case, the UE may selectthe random access resource when the t1 moment starts, and according toconfiguration information of the network side, if a measurement resultthat is of an SSB or a CSI-RS and that is measured by the UE is abovethe preset threshold, the UE may select, at the t2 moment, the randomaccess resource corresponding to the SSB1 (in this case, the measurementresult of the SSB1 is above the preset threshold), to transmit the Msg1.However, if the measurement result of the SSB1 is below or equal to thethreshold before a t4 moment, for example, the measurement result of theSSB1 at a t3 moment in FIG. 4 is below or equal to threshold, where thet4 moment is a moment obtained by delaying the t1 moment by thebackoffDelay, the UE may select a random access resource again until thet4 moment, and change a corresponding random access resource, forexample, change to a random access resource corresponding to an SSB3 (inthis case, a measurement result of the SSB3 is greater than thethreshold).

The random access resource selection method of the present disclosure isdescribed in the foregoing embodiments. A terminal device of the presentdisclosure is described below with reference to embodiments andaccompanying drawings.

As shown in FIG. 5, an embodiment of the present disclosure furtherprovides a terminal device 5, including: a determining module 51, afirst selection module 52, and a second selection module 53. Details aredescribed below.

The determining module 51 is configured to determine a first moment atwhich a terminal device determines that the reception of a random accessresponse signal is unsuccessful.

The first selection module 52 is configured to select a delay timeaccording to a received BI value.

The second selection module 53 is configured to select a random accessresource according to the first moment and the delay time.

Because the delay time selected according to the BI value is consideredwhen the random access resource is selected, after introduction of theBI value enables backoff of transmission of the random access signal,the terminal device in this embodiment of the present disclosure canselect the random access resource that is close to actual transmissionof the random access signal and that satisfies a requirement, totransmit the random access signal. Therefore, a selection incorrectnessprobability of the random access resource that is caused by delayedtransmission of the random access signal is reduced, and random accessfailures are reduced.

In this embodiment of the present disclosure, optionally, the secondselection module 53 is specifically configured to:

-   -   select the random access resource after the first moment is        delayed by the delay time.

Optionally, the second selection module 53 includes:

-   -   a first selection unit, configured to select the random access        resource at the first moment; and    -   a second selection unit, configured to: when a signal        measurement result corresponding to a random access resource        selected before a second moment is below a preset threshold,        select a random access resource again until the second moment,        where    -   the second moment is determined according to the first moment        and the delay time.

Optionally, the second moment is a moment obtained by delaying the firstmoment by the delay time; or

-   -   the second moment is a moment when the random access signal is        sent after delaying the first moment by the delay time.

Optionally, the signal measurement result is a measurement result of anSSB and/or a CSI-RS.

An embodiment of the present disclosure further provides a terminaldevice, including: a processor, a memory, and a computer program storedin the memory and executable on the processor. When the computer programis executed by the processor, processes in the embodiments of the randomaccess resource selection method may be performed, and the sametechnical effect can be achieved. To avoid repetition, details are notdescribed herein again.

Specifically, FIG. 6 is a schematic structural diagram of hardware of aterminal device 600 implementing various embodiments of the presentdisclosure. The terminal device 600 includes, but is not limited to: aradio frequency unit 601, a network module 602, an audio output unit603, an input unit 604, a sensor 605, a display unit 606, a user inputunit 607, an interface unit 608, a memory 609, a processor 610, a powersupply 611, and other components. A person skilled in the art mayunderstand that the structure of the terminal shown in FIG. 6 does notconstitute a limitation to the terminal. The terminal device may includemore or fewer components than those shown in the figure, or somecomponents are combined, or a different component arrangement is used.In this embodiment of the present disclosure, the terminal deviceincludes, but is not limited to, a mobile phone, a tablet computer, anotebook computer, a palmtop computer, a vehicle-mounted terminal, awearable device, a pedometer, or the like.

The processor 610 is configured to: determine a first moment at which aterminal device determines that the reception of a random accessresponse signal is unsuccessful; select a delay time according to areceived BI value; and select a random access resource according to thefirst moment and the delay time.

Because the delay time selected according to the BI value is consideredwhen the random access resource is selected, after introduction of theBI value enables backoff of transmission of the random access signal,the terminal device 600 in this embodiment of the present disclosure canselect the random access resource that is close to actual transmissionof the random access signal and that satisfies a requirement, totransmit the random access signal. Therefore, a selection incorrectnessprobability of the random access resource that is caused by delayedtransmission of the random access signal is reduced, and random accessfailures are reduced.

It should be understood that, in this embodiment of the presentdisclosure, the radio frequency unit 601 may be configured to receiveand transmit a signal during a process of receiving and transmittinginformation or a call. Specifically, the radio frequency unit 601receives downlink data from a base station, and transmits the downlinkdata to the processor 610 for processing; and transmits uplink data tothe base station. Generally, the radio frequency unit 601 includes, butis not limited to, an antenna, at least one amplifier, a transceiver, acoupler, a low noise amplifier, a duplexer, and the like. In addition,the radio frequency unit 601 can further communicate with a network andanother device via a wireless communications system.

The terminal device provides a user with wireless broadband Internetaccess through the network module 602, for example, helps the usertransmit and receive emails, browse web pages, and access streamingmedia.

The audio output unit 603 can convert audio data received by the radiofrequency unit 601 or the network module 602 or stored in the memory 609into an audio signal, and output the audio signal as sound. In addition,the audio output unit 603 can also provide audio output related to aspecific function performed by the terminal device 600 (for example,call signal receiving sound or message receiving sound). The audiooutput unit 603 includes a loudspeaker, a buzzer, a telephone receiver,and the like.

The input unit 604 is configured to receive audio or video signals. Theinput unit 604 may include a graphics processing unit (GraphicsProcessing Unit, GPU) 6041 and a microphone 6042. The graphicsprocessing unit 6041 processes image data of a static picture or a videoobtained by an image capturing apparatus (for example, a camera) in avideo capturing mode or an image capturing mode. A processed image framecan be displayed on the display unit 606. The image frame processed bythe graphics processing unit 6041 can be stored in the memory 609 (oranother storage medium) or sent by the radio frequency unit 601 or thenetwork module 602. The microphone 6042 can receive sound, and canprocess such sound into audio data. The processed audio data can beconverted, in a telephone calling mode, into a format that can be sentby the radio frequency unit 601 to a mobile communications base stationfor output.

The terminal device 600 further includes at least one sensor 605, suchas a light sensor, a motion sensor, and other sensors. Specifically, thelight sensor includes an ambient light sensor and a proximity sensor,where the ambient light sensor can adjust brightness of the displaypanel 6061 based on brightness of ambient light, and the proximitysensor can turn off the display panel 6061 and/or backlight when theterminal device 600 moves towards the ear. As a motion sensor, anaccelerometer sensor can detect magnitude of acceleration in variousdirections (usually, three axes), can detect magnitude and the directionof gravity when it is stationary, can be configured to identify terminalpostures (for example, switching between a portrait mode and a landscapemode, related games, and magnetometer posture calibration), and canperform functions related to vibration identification (for example, apedometer and a knock), and the like. The sensor 605 may further includea fingerprint sensor, a pressure sensor, an iris sensor, a molecularsensor, a gyroscope, a barometer, a hygrometer, a thermometer, aninfrared sensor, and the like. Details are not described herein again.

The display unit 606 is configured to display information entered by auser or information provided for the user. The display unit 606 mayinclude the display panel 6061, and the display panel 6061 may beconfigured in a form of a liquid crystal display (Liquid CrystalDisplay, LCD), an organic light-emitting diode (Organic Light-EmittingDiode, OLED), and the like.

The user input unit 607 can be configured to receive inputted numeric orcharacter information, and generate key signal inputs related to usersettings and function control of the terminal. Specifically, the userinput unit 607 includes a touch panel 6071 and another input device6072. The touch panel 6071, also referred to as a touch screen, cancollect a touch operation of the user on or near the touch panel 6071(for example, an operation performed by the user by using any suitableobject or accessory such as a finger or a stylus on or near the touchpanel 6071). The touch panel 6071 may include two parts: a touchdetection apparatus and a touch controller. The touch detectionapparatus detects a touch position of the user, detects a signal broughtby the touch operation, and transmits the signal to the touchcontroller. The touch controller receives touch information from thetouch detection apparatus, converts the touch information into contactcoordinates, transmits the contact coordinates to the processor 610,receives a command sent by the processor 610, and executes the command.In addition, the touch panel 6071 can be implemented in various typessuch as resistive, capacitive, infrared, and surface acoustic wave. Inaddition to the touch panel 6071, the user input unit 607 may furtherinclude the another input device 6072. Specifically, the another inputdevice 6072 may include, but is not limited to, a physical keyboard,function keys (for example, a volume control key and a switch key), atrackball, a mouse, and a joystick. Details are not described hereinagain.

Further, the touch panel 6071 can cover the display panel 6061. Afterthe touch panel 6071 detects a touch operation on or near the touchpanel 6071, the touch panel 6071 transmits the touch operation to theprocessor 610 to determine a type of a touch event. Subsequently, theprocessor 610 provides corresponding visual output on the display panel6061 according to the type of the touch event. Although in FIG. 6, thetouch panel 6071 and the display panel 6061 serve as two independentcomponents to implement input and output functions of the terminal, insome embodiments, the touch panel 6071 and the display panel 6061 can beintegrated to implement the input and output functions of the terminal.Details are not limited herein.

The interface unit 608 is an interface connecting an external apparatusto the terminal device 600. For example, the external apparatus caninclude a wired or wireless headphone port, an external power supply (ora battery charger) port, a wired or wireless data port, a memory cardport, a port for connection with an apparatus having an identificationmodule, an audio input/output (I/O) port, a video I/O port, an earphoneport, and the like. The interface unit 608 can be configured to receivean input (for example, data information and power) from the externalapparatus and transmit the received input to one or more elements in theterminal device 600, or transmit data between the terminal device 600and the external apparatus.

The memory 609 may be configured to store a software program and variousdata. The memory 609 may mainly include a program storage area and adata storage area. The program storage area may store an operatingsystem, an application program required by at least one function (forexample, a sound playback function and an image display function), andthe like. The data storage area may store data (for example, audio dataand a phone book) created based on use of the mobile phone, and thelike. In addition, the memory 609 may include a high-speed random accessmemory and may further include a nonvolatile memory, for example, atleast one magnetic disk storage device, a flash memory device, oranother volatile solid-state storage device.

The processor 610 is a control center of the terminal device, connectsvarious parts of the entire terminal by using various interfaces andcircuits, and performs various functions of the terminal and processesdata by running or executing the software program and/or a module storedin the memory 609 and invoking data stored in the memory 609, to monitorthe terminal as a whole. The processor 610 may include one or moreprocessing units. Optionally, the processor 610 may be integrated withan application processor and a modem processor. The applicationprocessor mainly processes an operating system, a user interface, anapplication program, and the like. The modem processor mainly processeswireless communication. It may be understood that the foregoing modemprocessor may not be integrated with the processor 610.

The terminal device 600 may further include a power supply 611 (forexample, a battery) that supplies power to various components.Optionally, the power supply 611 may be logically connected to theprocessor 610 through a power supply management system, to performfunctions of managing charging, discharging, and power consumptionthrough the power supply management system.

In addition, the terminal device 600 may further include some functionalmodules not shown. Details are not described herein again.

An embodiment of the present disclosure further provides a computerreadable storage medium, where the computer readable storage mediumstores a computer program, when the computer program is executed by aprocessor, the processes of the foregoing embodiments of the randomaccess resource selection method can be performed, and the sametechnical effects can be achieved. To avoid repetition, details are notdescribed herein again. The computer readable storage medium may be aread-only memory (Read-Only Memory, ROM), a random access memory (RandomAccess Memory, RAM), a magnetic disk, an optical disc, and the like.

It should be noted that in this specification, the terms “comprise”,“include” and any other variants thereof are intended to covernon-exclusive inclusion, so that a process, a method, an article, or anapparatus that includes a series of elements not only includes thesevery elements, but also may include other elements not expressly listed,or include elements inherent to this process, method, article, orapparatus. Without being subject to further limitations, an elementdefined by a phrase “including a . . . ” does not exclude presence ofother identical elements in the process, method, article, or apparatusthat includes the very element.

By means of the foregoing description of the implementations, a personskilled in the art may clearly understand that the method in theforegoing embodiments may be implemented by software with a necessarygeneral hardware platform. Certainly, the method in the foregoingembodiments may also be implemented by hardware. However, in many cases,the former is a preferred embodiment. Based on such an understanding,the technical solutions of the present disclosure essentially, or thepart contributing to the related technologies may be implemented in aform of a software product. The computer software product is stored in astorage medium (for example, a ROM/RAM, a magnetic disk, or an opticaldisc), and includes several instructions for instructing a terminal(which may be a mobile phone, a computer, a server, an air conditioner,a network device, or the like) to perform the method described in theembodiments of the present disclosure.

The embodiments of the present disclosure are described above withreference to the accompanying drawings, but the present disclosure isnot limited to the foregoing specific implementations. The foregoingspecific implementations are merely schematic instead of restrictive.Under enlightenment of the present disclosure, a person of ordinaryskill in the art may make many forms without departing from aims of thepresent disclosure and the protection scope of claims, all of which fallwithin the protection of the present disclosure.

1. A random access resource selection method, comprising: determining afirst moment at which a terminal device determines that the reception ofa random access response signal is unsuccessful; selecting a delay timeaccording to a received backoff indicator BI value; and selecting arandom access resource according to the first moment and the delay time.2. The selection method according to claim 1, wherein selecting a randomaccess resource according to the first moment and the delay timecomprises: selecting a random access resource after delaying the firstmoment by the delay time.
 3. The selection method according to claim 1,wherein selecting a random access resource according to the first momentand the delay time comprises: selecting the random access resource atthe first moment; and when a signal measurement result corresponding toa random access resource selected before a second moment is below apreset threshold, selecting a random access resource again until thesecond moment, wherein the second moment is determined according to thefirst moment and the delay time.
 4. The selection method according toclaim 3, wherein the second moment is a moment obtained by delaying thefirst moment by the delay time; or the second moment is a moment whenthe random access signal is sent after delaying the first moment by thedelay time.
 5. The selection method according to claim 3, wherein thesignal measurement result is a measurement result of a synchronoussignal block SSB and/or a channel state information reference signalCSI-RS.
 6. A terminal device, comprising: a memory, a processor, and aprogram stored in the memory and executable on the processor, whereinwhen the program is executed by the processor, the processor isconfigured to: determine a first moment at which a terminal devicedetermines that the reception of a random access response signal isunsuccessful; select a delay time according to a received BI value; andselect a random access resource according to the first moment and thedelay time.
 7. The terminal device according to claim 6, wherein theprocessor is specifically configured to: select a random access resourceafter delaying the first moment by the delay time.
 8. The terminaldevice according to claim 6, wherein the processor is specificallyconfigured to: select the random access resource at the first moment;and when a signal measurement result corresponding to a random accessresource selected before a second moment is below a preset threshold,select a random access resource again until the second moment, whereinthe second moment is determined according to the first moment and thedelay time.
 9. The terminal device according to claim 8, wherein thesecond moment is a moment obtained by delaying the first moment by thedelay time; or the second moment is a moment when the random accesssignal is sent after delaying the first moment by the delay time. 10.The terminal device according to claim 8, wherein the signal measurementresult is a measurement result of an SSB and/or a CSI-RS.
 11. Anon-transient computer readable storage medium, wherein the computerreadable storage medium stores a program, and the program is executed bya processor to perform following steps: determining a first moment atwhich a terminal device determines that the reception of a random accessresponse signal is unsuccessful; selecting a delay time according to areceived backoff indicator BI value; and selecting a random accessresource according to the first moment and the delay time.
 12. Thenon-transient computer readable storage medium according to claim 11,wherein the program is executed by the processor to: select a randomaccess resource after delaying the first moment by the delay time. 13.The non-transient computer readable storage medium according to claim11, wherein the program is executed by the processor to: select therandom access resource at the first moment; and when a signalmeasurement result corresponding to a random access resource selectedbefore a second moment is below a preset threshold, select a randomaccess resource again until the second moment, wherein the second momentis determined according to the first moment and the delay time.
 14. Thenon-transient computer readable storage medium according to claim 13,wherein the second moment is a moment obtained by delaying the firstmoment by the delay time; or the second moment is a moment when therandom access signal is sent after delaying the first moment by thedelay time.
 15. The non-transient computer readable storage mediumaccording to claim 13, wherein the signal measurement result is ameasurement result of an SSB and/or a CSI-RS.